/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejemplo_final_constructores;

/**
 *
 * @author curso
 */
public class Calculadora {

    public static int suma(int x, int y) {
        imprimeSaludo();
        return x + y;
    }

    public static int resta(int x, int y) {
        return x - y;
    }

    public static int divide(int x, int y) {
        if(y==0)
            return 0;
        return x / y;
    }

    public int multiplica(int x, int y) {
        return x * y;
    }
    
    public static void imprimeSaludo(){
        System.out.println("Bienvenido a mi calculadora");
    }
}
